Skip to content

ARROW-11777: [Rust] impl AsRef for StringBuilder/BinaryBuilder#9570

Closed
Max-Meldrum wants to merge 3 commits into
apache:masterfrom
Max-Meldrum:as_ref_patch
Closed

ARROW-11777: [Rust] impl AsRef for StringBuilder/BinaryBuilder#9570
Max-Meldrum wants to merge 3 commits into
apache:masterfrom
Max-Meldrum:as_ref_patch

Conversation

@Max-Meldrum

Copy link
Copy Markdown
Contributor

This patch adds impl AsRef<[u8]> to the append_value/append of StringBuilder and BinaryBuilder.

pub fn append_value(&mut self, value: impl AsRef<[u8]>) -> Result<()>

Non-breaking change that will enable data to be passed as value as well.

@github-actions

Copy link
Copy Markdown

@nevi-me nevi-me changed the title ARROW-11777: [Rust][Arrow/Datafusion] impl AsRef for StringBuilder/BinaryBuilder ARROW-11777: [Rust] impl AsRef for StringBuilder/BinaryBuilder Feb 25, 2021

@nevi-me nevi-me left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Max-Meldrum this looks like a great improvement. Thank you for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants